package a.e.b.a;

import a.e.b.b.t;
import a.e.b.c.cb;
import a.e.b.c.o;
import a.j.a.n;
import a.j.ld;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

public class l
  extends k
{
  static Class l;
  public static int m;
  
  public String a()
  {
    return "GenericGroupNode";
  }
  
  public Class d()
  {
    if (!i.i) {}
    return l == null ? (l.l = c("a.j.a.n")) : l;
  }
  
  public void a(ld paramld, cb paramcb, o paramo)
    throws a.e.b.c.a
  {
    boolean bool = i.i;
    super.a(paramld, paramcb, paramo);
    n localn = (n)paramld;
    if (!bool)
    {
      paramcb.a("State", "http://www.yworks.com/xml/graphml").a("autoResize", localn.U()).a("closed", localn.h());
      if (localn.h())
      {
        paramcb.a("closedHeight", localn.d()).a("closedWidth", localn.c());
        if (bool) {
          return;
        }
        if (i.h == 0) {
          break label129;
        }
      }
    }
    paramcb.a("closedHeight", localn.X()).a("closedWidth", localn.W());
    label129:
    paramcb.b();
    y.a(paramcb, "Insets", localn.i());
    y.a(paramcb, "BorderInsets", localn.j());
  }
  
  public void a(ld paramld, Node paramNode, t paramt)
    throws a.e.b.b.a
  {
    boolean bool = i.i;
    int j = i.h;
    super.a(paramld, paramNode, paramt);
    n localn = (n)paramld;
    NodeList localNodeList = paramNode.getChildNodes();
    int i = 0;
    do
    {
      if (i >= localNodeList.getLength()) {
        break;
      }
      Node localNode1 = localNodeList.item(i);
      NamedNodeMap localNamedNodeMap = localNode1.getAttributes();
      if (!bool)
      {
        if (localNode1.getNodeType() == 1)
        {
          if (bool) {
            continue;
          }
          if ("http://www.yworks.com/xml/graphml".equals(localNode1.getNamespaceURI()))
          {
            String str = localNode1.getLocalName();
            if (!bool) {
              if ("State".equals(str))
              {
                localNamedNodeMap = localNode1.getAttributes();
                Node localNode2 = localNamedNodeMap.getNamedItem("autoResize");
                if (!bool)
                {
                  if (localNode2 != null) {
                    localn.a(Boolean.valueOf(localNode2.getNodeValue()).booleanValue());
                  }
                  localNode2 = localNamedNodeMap.getNamedItem("closedHeight");
                }
                if (!bool)
                {
                  if (localNode2 != null) {
                    localn.i(Double.parseDouble(localNode2.getNodeValue()));
                  }
                  localNode2 = localNamedNodeMap.getNamedItem("closedWidth");
                }
                if (!bool)
                {
                  if (localNode2 != null) {
                    localn.h(Double.parseDouble(localNode2.getNodeValue()));
                  }
                  localNode2 = localNamedNodeMap.getNamedItem("closed");
                }
                if (localNode2 != null) {
                  localn.b(Boolean.valueOf(localNode2.getNodeValue()).booleanValue());
                }
              }
            }
            if (!bool) {
              if ("Insets".equals(str)) {
                localn.b(y.b(localNode1));
              }
            }
            if (bool) {
              continue;
            }
            if ("BorderInsets".equals(str)) {
              localn.c(y.b(localNode1));
            }
          }
        }
        i++;
      }
    } while (j == 0);
  }
  
  static Class c(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.e.b.a.l
 * JD-Core Version:    0.7.0.1
 */